using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;

namespace SAP.BusinessOne.Mackinac.Generator.Model
{
    public class ArgumentInfoCollection : List<ArgumentInfo>
    {
        public ArgumentInfoCollection(IEnumerable<ParameterInfo> paramList)
        {
            foreach (var pi in paramList)
            {
                this.Add(new ArgumentInfo(pi));
            }
        }

        public override string ToString()
        {
            return String.Join(", ", this.Select(p => p.ToString()));
        }
    }
}